home *** CD-ROM | disk | FTP | other *** search
/ Mac Magazin/MacEasy 33 / Mac Magazin and MacEasy Magazine CD - Issue 33.iso / Office / Amy's Recipes 2.4 / Amy's Recipes2.4 / Amy's Recipes2.4 / background_2656.xml next >
Extensible Markup Language  |  1997-05-19  |  27KB  |  540 lines

  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <!DOCTYPE background PUBLIC "-//Apple, Inc.//DTD background V 2.0//EN" "" >
  3. <background>
  4.     <id>2656</id>
  5.     <filler1>0</filler1>
  6.     <bitmap>BMAP_3793.pbm</bitmap>
  7.     <cantDelete> <true /> </cantDelete>
  8.     <showPict> <true /> </showPict>
  9.     <dontSearch> <false /> </dontSearch>
  10.     <link rel="stylesheet" type="text/css" href="stylesheet_3166.css" />
  11.     <part>
  12.         <id>27</id>
  13.         <type>field</type>
  14.         <visible> <true /> </visible>
  15.         <dontWrap> <false /> </dontWrap>
  16.         <dontSearch> <false /> </dontSearch>
  17.         <sharedText> <false /> </sharedText>
  18.         <fixedLineHeight> <false /> </fixedLineHeight>
  19.         <autoTab> <false /> </autoTab>
  20.         <lockText> <true /> </lockText>
  21.         <rect>
  22.             <left>0</left>
  23.             <top>8</top>
  24.             <right>613</right>
  25.             <bottom>392</bottom>
  26.         </rect>
  27.         <style>opaque</style>
  28.         <autoSelect> <false /> </autoSelect>
  29.         <showLines> <false /> </showLines>
  30.         <wideMargins> <false /> </wideMargins>
  31.         <multipleLines> <false /> </multipleLines>
  32.         <reservedFamily> 0 </reservedFamily>
  33.         <titleWidth>0</titleWidth>
  34.         <icon>0</icon>
  35.         <textAlign>left</textAlign>
  36.         <font>Geneva</font>
  37.         <textSize>12</textSize>
  38.         <textStyle>plain</textStyle>
  39.         <textHeight>16</textHeight>
  40.         <name>HideIt2</name>
  41.         <script></script>
  42.     </part>
  43.     <part>
  44.         <id>1</id>
  45.         <type>field</type>
  46.         <visible> <true /> </visible>
  47.         <dontWrap> <true /> </dontWrap>
  48.         <dontSearch> <true /> </dontSearch>
  49.         <sharedText> <true /> </sharedText>
  50.         <fixedLineHeight> <false /> </fixedLineHeight>
  51.         <autoTab> <false /> </autoTab>
  52.         <lockText> <true /> </lockText>
  53.         <rect>
  54.             <left>35</left>
  55.             <top>37</top>
  56.             <right>249</right>
  57.             <bottom>392</bottom>
  58.         </rect>
  59.         <style>scrolling</style>
  60.         <autoSelect> <true /> </autoSelect>
  61.         <showLines> <false /> </showLines>
  62.         <wideMargins> <true /> </wideMargins>
  63.         <multipleLines> <false /> </multipleLines>
  64.         <reservedFamily> 0 </reservedFamily>
  65.         <selectedLines>
  66.             <integer>1</integer>
  67.         </selectedLines>
  68.         <textAlign>center</textAlign>
  69.         <font>Helvetica</font>
  70.         <textSize>19</textSize>
  71.         <textStyle>bold</textStyle>
  72.         <textHeight>25</textHeight>
  73.         <name>Table of Contents</name>
  74.         <script>on mouseupplay "click"put the selectedText of me into CardNameif there is not a card Cardname then exit mouseupif the optionKey is downthensend "ShowMe" && quote & CardName & quote to bg field "Recipe Names" of card CardName-- go card CardNameSelect Line (number of this card - 1) of meelseplay "Slide"set the scroll of bg field "Table of Contents" of card CardName to the scroll of mego to Card CardNameend ifend mouseupon mouseenterFullBalloons showDirect,"Click me view a category index.  Option click me"¬¨&&"to get a floating window of the category index."end mouseenter</script>
  75.     </part>
  76.     <part>
  77.         <id>2</id>
  78.         <type>field</type>
  79.         <visible> <true /> </visible>
  80.         <dontWrap> <true /> </dontWrap>
  81.         <dontSearch> <true /> </dontSearch>
  82.         <sharedText> <false /> </sharedText>
  83.         <fixedLineHeight> <true /> </fixedLineHeight>
  84.         <autoTab> <false /> </autoTab>
  85.         <lockText> <true /> </lockText>
  86.         <rect>
  87.             <left>257</left>
  88.             <top>37</top>
  89.             <right>554</right>
  90.             <bottom>356</bottom>
  91.         </rect>
  92.         <style>scrolling</style>
  93.         <autoSelect> <true /> </autoSelect>
  94.         <showLines> <false /> </showLines>
  95.         <wideMargins> <true /> </wideMargins>
  96.         <multipleLines> <false /> </multipleLines>
  97.         <reservedFamily> 0 </reservedFamily>
  98.         <titleWidth>0</titleWidth>
  99.         <icon>0</icon>
  100.         <textAlign>left</textAlign>
  101.         <font>Helvetica</font>
  102.         <textSize>15</textSize>
  103.         <textStyle>bold</textStyle>
  104.         <textHeight>20</textHeight>
  105.         <name>Recipe Names</name>
  106.         <script>On MouseUpplay "click"if the optionKey is down then ShowMeelseset cursor to watchput the selectedText of me into CardNameglobal ColorONlock screenplay "Slide"if ColorOn = "True"thengo to Card CardNameAddColor colorCard,fromTop,10unlock screenelsego to Card CardNameunlock screen with visual dissolve very fastend ifend ifselect line 0 of meend Mouseupon ShowMe TheName,TheRectif TheName is empty then put (short name of this card) into TheNameif there is not a window TheNamethenset cursor to watchif TheRect is empty then put rect of me into TheRectput "Total Recipes" && (the number of lines in me) && "-- Click To View" into LittleSayingListoid TheName,me,TheRect,bigWindoidZoom,¬¨one,helvetica,12,LittleSaying,"DontAllowReorg",0else show window TheNameend ShowMeon updateMebeepanswer "Put a script here that will update the Listoid Window if it is already open.  The simplist thing would to be it kill it and reopen it. During the update."end Updatemeon closeField -- this should never happenupdatemeend closefieldon mouseenterBalloonItend mouseenteron BalloonItif the mouseLoc is within the Rect of methenFullBalloons showDirect,"Click me view a recipe.  Option click me"¬¨&&"to get a floating window of this category index."end ifend BalloonIt</script>
  107.     </part>
  108.     <part>
  109.         <id>4</id>
  110.         <type>field</type>
  111.         <visible> <true /> </visible>
  112.         <dontWrap> <false /> </dontWrap>
  113.         <dontSearch> <false /> </dontSearch>
  114.         <sharedText> <true /> </sharedText>
  115.         <fixedLineHeight> <false /> </fixedLineHeight>
  116.         <autoTab> <false /> </autoTab>
  117.         <lockText> <false /> </lockText>
  118.         <rect>
  119.             <left>35</left>
  120.             <top>6</top>
  121.             <right>250</right>
  122.             <bottom>34</bottom>
  123.         </rect>
  124.         <style>transparent</style>
  125.         <autoSelect> <false /> </autoSelect>
  126.         <showLines> <false /> </showLines>
  127.         <wideMargins> <false /> </wideMargins>
  128.         <multipleLines> <false /> </multipleLines>
  129.         <reservedFamily> 0 </reservedFamily>
  130.         <titleWidth>0</titleWidth>
  131.         <icon>0</icon>
  132.         <textAlign>center</textAlign>
  133.         <font>Helvetica</font>
  134.         <textSize>26</textSize>
  135.         <textStyle>condense</textStyle>
  136.         <textStyle>bold</textStyle>
  137.         <textHeight>34</textHeight>
  138.         <name></name>
  139.         <script></script>
  140.     </part>
  141.     <part>
  142.         <id>5</id>
  143.         <type>field</type>
  144.         <visible> <true /> </visible>
  145.         <dontWrap> <false /> </dontWrap>
  146.         <dontSearch> <true /> </dontSearch>
  147.         <sharedText> <false /> </sharedText>
  148.         <fixedLineHeight> <false /> </fixedLineHeight>
  149.         <autoTab> <false /> </autoTab>
  150.         <lockText> <true /> </lockText>
  151.         <rect>
  152.             <left>258</left>
  153.             <top>6</top>
  154.             <right>554</right>
  155.             <bottom>33</bottom>
  156.         </rect>
  157.         <style>transparent</style>
  158.         <autoSelect> <false /> </autoSelect>
  159.         <showLines> <false /> </showLines>
  160.         <wideMargins> <false /> </wideMargins>
  161.         <multipleLines> <false /> </multipleLines>
  162.         <reservedFamily> 0 </reservedFamily>
  163.         <titleWidth>0</titleWidth>
  164.         <icon>0</icon>
  165.         <textAlign>center</textAlign>
  166.         <font>Helvetica</font>
  167.         <textSize>26</textSize>
  168.         <textStyle>condense</textStyle>
  169.         <textStyle>bold</textStyle>
  170.         <textHeight>34</textHeight>
  171.         <name>Index Name</name>
  172.         <script>on closefieldset the name of this card to meend closefield</script>
  173.     </part>
  174.     <part>
  175.         <id>6</id>
  176.         <type>button</type>
  177.         <visible> <true /> </visible>
  178.         <reserved5> 0 </reserved5>
  179.         <reserved4> 0 </reserved4>
  180.         <reserved3> 0 </reserved3>
  181.         <reserved2> 0 </reserved2>
  182.         <reserved1> 0 </reserved1>
  183.         <enabled> <true /> </enabled>
  184.         <rect>
  185.             <left>616</left>
  186.             <top>14</top>
  187.             <right>638</right>
  188.             <bottom>142</bottom>
  189.         </rect>
  190.         <style>transparent</style>
  191.         <showName> <false /> </showName>
  192.         <highlight> <false /> </highlight>
  193.         <autoHighlight> <true /> </autoHighlight>
  194.         <sharedHighlight> <true /> </sharedHighlight>
  195.         <family>0</family>
  196.         <titleWidth>0</titleWidth>
  197.         <icon>0</icon>
  198.         <textAlign>center</textAlign>
  199.         <font>Chicago</font>
  200.         <textSize>12</textSize>
  201.         <textStyle>plain</textStyle>
  202.         <name></name>
  203.         <script>on mouseUpput "This feature will be added in version 3.0.  Right now you can use the Mini Cookbook "¬¨& "to plan your meals.  3.0 is planned for '96 & FREE to registered users." into TheMessageoops TheMessageend mouseUpon mouseenterFullBalloons showDirect,"This feature is not added yet, click me for more info."end mouseenter</script>
  204.     </part>
  205.     <part>
  206.         <id>8</id>
  207.         <type>button</type>
  208.         <visible> <true /> </visible>
  209.         <reserved5> 0 </reserved5>
  210.         <reserved4> 0 </reserved4>
  211.         <reserved3> 0 </reserved3>
  212.         <reserved2> 0 </reserved2>
  213.         <reserved1> 0 </reserved1>
  214.         <enabled> <true /> </enabled>
  215.         <rect>
  216.             <left>585</left>
  217.             <top>2</top>
  218.             <right>612</right>
  219.             <bottom>37</bottom>
  220.         </rect>
  221.         <style>shadow</style>
  222.         <showName> <false /> </showName>
  223.         <highlight> <false /> </highlight>
  224.         <autoHighlight> <true /> </autoHighlight>
  225.         <sharedHighlight> <true /> </sharedHighlight>
  226.         <family>0</family>
  227.         <titleWidth>0</titleWidth>
  228.         <icon>22717</icon>
  229.         <textAlign>center</textAlign>
  230.         <font>Chicago</font>
  231.         <textSize>12</textSize>
  232.         <textStyle>plain</textStyle>
  233.         <name>next</name>
  234.         <script>on mouseDownplay "click"mouseStillDownend mouseDownon mouseStillDownwait until the sound is donenextcardend mouseStillDownon mouseenterFullBalloons showDirect,"Click me to go to the next category."end mouseenter</script>
  235.     </part>
  236.     <part>
  237.         <id>9</id>
  238.         <type>button</type>
  239.         <visible> <true /> </visible>
  240.         <reserved5> 0 </reserved5>
  241.         <reserved4> 0 </reserved4>
  242.         <reserved3> 0 </reserved3>
  243.         <reserved2> 0 </reserved2>
  244.         <reserved1> 0 </reserved1>
  245.         <enabled> <true /> </enabled>
  246.         <rect>
  247.             <left>557</left>
  248.             <top>2</top>
  249.             <right>585</right>
  250.             <bottom>38</bottom>
  251.         </rect>
  252.         <style>shadow</style>
  253.         <showName> <false /> </showName>
  254.         <highlight> <false /> </highlight>
  255.         <autoHighlight> <true /> </autoHighlight>
  256.         <sharedHighlight> <true /> </sharedHighlight>
  257.         <family>0</family>
  258.         <titleWidth>0</titleWidth>
  259.         <icon>22718</icon>
  260.         <textAlign>center</textAlign>
  261.         <font>Chicago</font>
  262.         <textSize>12</textSize>
  263.         <textStyle>plain</textStyle>
  264.         <name>prev</name>
  265.         <script>on mouseDownplay "click"mouseStillDownend mouseDownon mouseStillDownwait until the sound is doneprevcardend mouseStillDownon mouseenterFullBalloons showDirect,"Click me to go to the next category."end mouseenter</script>
  266.     </part>
  267.     <part>
  268.         <id>10</id>
  269.         <type>button</type>
  270.         <visible> <true /> </visible>
  271.         <reserved5> 0 </reserved5>
  272.         <reserved4> 0 </reserved4>
  273.         <reserved3> 0 </reserved3>
  274.         <reserved2> 0 </reserved2>
  275.         <reserved1> 0 </reserved1>
  276.         <enabled> <true /> </enabled>
  277.         <rect>
  278.             <left>570</left>
  279.             <top>99</top>
  280.             <right>605</right>
  281.             <bottom>152</bottom>
  282.         </rect>
  283.         <style>shadow</style>
  284.         <showName> <true /> </showName>
  285.         <highlight> <false /> </highlight>
  286.         <autoHighlight> <true /> </autoHighlight>
  287.         <sharedHighlight> <true /> </sharedHighlight>
  288.         <family>0</family>
  289.         <titleWidth>0</titleWidth>
  290.         <icon>22264</icon>
  291.         <textAlign>center</textAlign>
  292.         <font>Chicago</font>
  293.         <textSize>12</textSize>
  294.         <textStyle>plain</textStyle>
  295.         <name>Help</name>
  296.         <script>on mouseUpplay "click"helpMeend mouseUpon mouseenterFullBalloons showDirect,"Click me view and or print the instructions."end mouseenter</script>
  297.     </part>
  298.     <part>
  299.         <id>13</id>
  300.         <type>button</type>
  301.         <visible> <true /> </visible>
  302.         <reserved5> 0 </reserved5>
  303.         <reserved4> 0 </reserved4>
  304.         <reserved3> 0 </reserved3>
  305.         <reserved2> 0 </reserved2>
  306.         <reserved1> 0 </reserved1>
  307.         <enabled> <true /> </enabled>
  308.         <rect>
  309.             <left>257</left>
  310.             <top>361</top>
  311.             <right>555</right>
  312.             <bottom>394</bottom>
  313.         </rect>
  314.         <style>shadow</style>
  315.         <showName> <true /> </showName>
  316.         <highlight> <false /> </highlight>
  317.         <autoHighlight> <true /> </autoHighlight>
  318.         <sharedHighlight> <true /> </sharedHighlight>
  319.         <family>0</family>
  320.         <titleWidth>0</titleWidth>
  321.         <icon>0</icon>
  322.         <textAlign>center</textAlign>
  323.         <font>Chicago</font>
  324.         <textSize>12</textSize>
  325.         <textStyle>plain</textStyle>
  326.         <name>Add New Recipe</name>
  327.         <script>on mouseUpplay "click"global Categoryask "New Recipe for the" &&  bg field "index name" && "Section:" & return¬¨&"What do you want to name this recipe?"if it = "" then exit mouseupif length of it > 33 then put char 1 to 33 of it into TempNameelse put it into TempName -- card names cannot be over 33 char and still--                           work with an index field properlyAddNew TempNameend mouseupon mouseenterFullBalloons showDirect,"Click me to add a new recipe to this category."¬¨&&"(" & bg field "index name" & ")"end mouseenter</script>
  328.     </part>
  329.     <part>
  330.         <id>16</id>
  331.         <type>button</type>
  332.         <visible> <false /> </visible>
  333.         <reserved5> 0 </reserved5>
  334.         <reserved4> 0 </reserved4>
  335.         <reserved3> 0 </reserved3>
  336.         <reserved2> 0 </reserved2>
  337.         <reserved1> 0 </reserved1>
  338.         <enabled> <true /> </enabled>
  339.         <rect>
  340.             <left>457</left>
  341.             <top>166</top>
  342.             <right>485</right>
  343.             <bottom>213</bottom>
  344.         </rect>
  345.         <style>shadow</style>
  346.         <showName> <true /> </showName>
  347.         <highlight> <false /> </highlight>
  348.         <autoHighlight> <true /> </autoHighlight>
  349.         <sharedHighlight> <true /> </sharedHighlight>
  350.         <family>0</family>
  351.         <titleWidth>0</titleWidth>
  352.         <icon>28184</icon>
  353.         <textAlign>center</textAlign>
  354.         <font>Chicago</font>
  355.         <textSize>12</textSize>
  356.         <textStyle>plain</textStyle>
  357.         <name>Edit</name>
  358.         <script>on mouseUpplay "click"lock screen-- skip warning featureif the OptionKey is not downthenanswer "Select the recipe name you wish to edit." with "Ok" or "Cancel"if it is "cancel" then exit mouseUpend if-- select and confirm the name to editrepeatset cursor to plusunlock screenrepeat until the mouse is downend repeatplay "click"lock screenselect the clicklineput the selectedtext into tempif temp is not in bg field "Recipe Names"thenbeepexit MouseUpend ifanswer "Edit Name of:" && temp & "?" with "ok" or "no, try again"if it = "ok" then exit repeatend repeat-- check for duplicate nameset cursor to watchrepeatAsk "Enter new name for" && temp & "." with tempput it into newtempif newtemp = "" then put temp into newtempif newtemp = temp then exit repeatpush this cardput id of this card into TEMPIDgo to card newtempif id of this card <> TEMPIDthenanswer "Sorry, this name has already been taken." with "oops"pop cardelsepop cardexit repeatend ifend repeatput the clickline into TempClickLineset cursor to watch-- Category change informationanswer "Do you also want to change the Category this recipe is filed under?"¬¨with "Yes" or "No"if it is "Yes"thenhide card button "cover"answer "Select the Category from the Table of Contents." with "ok"put "Yes" into CatChangerepeatset cursor to plusunlock screenrepeat until the mouse is downend repeatplay "click"lock screenselect the clicklineput the selectedtext into CatNameif CatName is not in bg field "Table of Contents"thenbeepelseanswer "Change Category to" && CatName & "?" with "ok"¬¨or "no, try again"if it = "ok"thenexit repeatend ifend ifend repeatshow card button "cover"set cursor to watchend ifset cursor to watchdelete TempClickLine-- update indexif CatChange = "yes" then go to card CatNameput newtemp & return before line 1 of bg field "Recipe Names"sort lines of bg field "Recipe Names" ascendingClearBlanksset cursor to watch-- change card namepush cardgo to card tempput newtemp into bg field "recipe name"set the name of this card to newtempif CatChange = "yes" then put CatName into bg field "Category"-- sort all the cards of this Categoryunmark all cardsmark cards where bg field "Category" = bg field "Category"sort cards by (bg field "Category" && bg field "Recipe Name")pop cardunlock screenend mouseUp</script>
  359.     </part>
  360.     <part>
  361.         <id>17</id>
  362.         <type>button</type>
  363.         <visible> <true /> </visible>
  364.         <reserved5> 0 </reserved5>
  365.         <reserved4> 0 </reserved4>
  366.         <reserved3> 0 </reserved3>
  367.         <reserved2> 0 </reserved2>
  368.         <reserved1> 0 </reserved1>
  369.         <enabled> <true /> </enabled>
  370.         <rect>
  371.             <left>570</left>
  372.             <top>41</top>
  373.             <right>606</right>
  374.             <bottom>94</bottom>
  375.         </rect>
  376.         <style>shadow</style>
  377.         <showName> <true /> </showName>
  378.         <highlight> <false /> </highlight>
  379.         <autoHighlight> <true /> </autoHighlight>
  380.         <sharedHighlight> <true /> </sharedHighlight>
  381.         <family>0</family>
  382.         <titleWidth>0</titleWidth>
  383.         <icon>22538</icon>
  384.         <textAlign>center</textAlign>
  385.         <font>Chicago</font>
  386.         <textSize>12</textSize>
  387.         <textStyle>plain</textStyle>
  388.         <name>Find</name>
  389.         <script>on mouseUpplay "click"domenu "find..."end mouseUpon mouseenterput "Click me to find recipes by searching for a word or phrase." into¬¨TheMessageFullBalloons showDirect,TheMessageend mouseenter</script>
  390.     </part>
  391.     <part>
  392.         <id>18</id>
  393.         <type>button</type>
  394.         <visible> <false /> </visible>
  395.         <reserved5> 0 </reserved5>
  396.         <reserved4> 0 </reserved4>
  397.         <reserved3> 0 </reserved3>
  398.         <reserved2> 0 </reserved2>
  399.         <reserved1> 0 </reserved1>
  400.         <enabled> <true /> </enabled>
  401.         <rect>
  402.             <left>457</left>
  403.             <top>214</top>
  404.             <right>485</right>
  405.             <bottom>261</bottom>
  406.         </rect>
  407.         <style>shadow</style>
  408.         <showName> <true /> </showName>
  409.         <highlight> <false /> </highlight>
  410.         <autoHighlight> <true /> </autoHighlight>
  411.         <sharedHighlight> <true /> </sharedHighlight>
  412.         <family>0</family>
  413.         <titleWidth>0</titleWidth>
  414.         <icon>2700</icon>
  415.         <textAlign>center</textAlign>
  416.         <font>Chicago</font>
  417.         <textSize>12</textSize>
  418.         <textStyle>plain</textStyle>
  419.         <name>Cut</name>
  420.         <script>on mouseUp   -- THIS PART JUST SELECTS THE TEXTplay "click"if the OptionKey is not downthenanswer "Select the recipe you want to delete?" with "OK" or "Cancel"if it is "cancel" then exit mouseUpend ifset cursor to plusrepeat until the mouse is downend repeatplay "click"select the clickline-- CHECK TO SEE IF PROPER TEXT IS SELECTEDput the selectedtext into tempif temp is not in bg field "Recipe Names"thenbeepexit MOUSEUPend if-- CHECK TO SEE IF CLICK WAS MADE IN RIGHT PLACEanswer "Delete:" && temp & "?" with "ok" or "cancel"if it = "cancel" then exit mouseupset cursor to watchdelete the clicklineZapIt Tempend Mouseupon FindIt Name -- FOR USE WHEN DELETING FROM ANOTHER CARD-- ASK "NAME"-- Put it into NameREPEAT WITH X = 1 TO NUMBER OF LINES IN BG FIELD "Recipe Names"IF line x of bg field "Recipe Names" = Name Then Exit repeatend REPEATPut line X of bg field "Recipe Names" into tempdelete line X of bg field "Recipe Names"ZapIt Tempend FindIton ZapIt Templock screenpush cardgo to card temprepeatplay "tear"domenu "delete card"exit repeatend repeatpop cardend ZapIt</script>
  421.     </part>
  422.     <part>
  423.         <id>24</id>
  424.         <type>field</type>
  425.         <visible> <true /> </visible>
  426.         <dontWrap> <false /> </dontWrap>
  427.         <dontSearch> <false /> </dontSearch>
  428.         <sharedText> <true /> </sharedText>
  429.         <fixedLineHeight> <false /> </fixedLineHeight>
  430.         <autoTab> <false /> </autoTab>
  431.         <lockText> <true /> </lockText>
  432.         <rect>
  433.             <left>628</left>
  434.             <top>388</top>
  435.             <right>640</right>
  436.             <bottom>400</bottom>
  437.         </rect>
  438.         <style>transparent</style>
  439.         <autoSelect> <false /> </autoSelect>
  440.         <showLines> <false /> </showLines>
  441.         <wideMargins> <false /> </wideMargins>
  442.         <multipleLines> <false /> </multipleLines>
  443.         <reservedFamily> 0 </reservedFamily>
  444.         <titleWidth>0</titleWidth>
  445.         <icon>0</icon>
  446.         <textAlign>left</textAlign>
  447.         <font>Helvetica</font>
  448.         <textSize>12</textSize>
  449.         <textStyle>plain</textStyle>
  450.         <textHeight>16</textHeight>
  451.         <name>FindStuff</name>
  452.         <script>on mouseuphide meend mouseup</script>
  453.     </part>
  454.     <part>
  455.         <id>28</id>
  456.         <type>field</type>
  457.         <visible> <true /> </visible>
  458.         <dontWrap> <false /> </dontWrap>
  459.         <dontSearch> <false /> </dontSearch>
  460.         <sharedText> <false /> </sharedText>
  461.         <fixedLineHeight> <false /> </fixedLineHeight>
  462.         <autoTab> <false /> </autoTab>
  463.         <lockText> <true /> </lockText>
  464.         <rect>
  465.             <left>516</left>
  466.             <top>6</top>
  467.             <right>554</right>
  468.             <bottom>20</bottom>
  469.         </rect>
  470.         <style>transparent</style>
  471.         <autoSelect> <false /> </autoSelect>
  472.         <showLines> <false /> </showLines>
  473.         <wideMargins> <false /> </wideMargins>
  474.         <multipleLines> <false /> </multipleLines>
  475.         <reservedFamily> 0 </reservedFamily>
  476.         <titleWidth>0</titleWidth>
  477.         <icon>0</icon>
  478.         <textAlign>right</textAlign>
  479.         <font>Helvetica</font>
  480.         <textSize>10</textSize>
  481.         <textStyle>bold</textStyle>
  482.         <textHeight>13</textHeight>
  483.         <name>Count</name>
  484.         <script>on updateput the number of lines in bg field "recipe names" into meend updateon mouseupupdateend mouseupon mouseenterFullBalloons showDirect,"Current number of recipes in this category."end mouseenter</script>
  485.     </part>
  486.     <part>
  487.         <id>29</id>
  488.         <type>button</type>
  489.         <visible> <true /> </visible>
  490.         <reserved5> 0 </reserved5>
  491.         <reserved4> 0 </reserved4>
  492.         <reserved3> 0 </reserved3>
  493.         <reserved2> 0 </reserved2>
  494.         <reserved1> 0 </reserved1>
  495.         <enabled> <true /> </enabled>
  496.         <rect>
  497.             <left>558</left>
  498.             <top>335</top>
  499.             <right>609</right>
  500.             <bottom>394</bottom>
  501.         </rect>
  502.         <style>shadow</style>
  503.         <showName> <true /> </showName>
  504.         <highlight> <false /> </highlight>
  505.         <autoHighlight> <true /> </autoHighlight>
  506.         <sharedHighlight> <true /> </sharedHighlight>
  507.         <family>0</family>
  508.         <titleWidth>0</titleWidth>
  509.         <icon>22132</icon>
  510.         <textAlign>center</textAlign>
  511.         <font>Chicago</font>
  512.         <textSize>12</textSize>
  513.         <textStyle>plain</textStyle>
  514.         <name>Register</name>
  515.         <script>-- IMPORTANT NOTE:-- Line 3 of this button's contents effects the registration number acceptable.  If it is empty-- this button will not work.  Using the name of the program is the best thing to use here.on mouseUpplay "click"if the shiftkey is down and the cantpeek of this stack is false thenask "Enter the name:"if it is empty then exit mouseupput it into TheNameanswer getregistrationnumber(TheName)exit mouseupend ifif the optionkey is down then ShowRegistraionInfoelseif the first line of me is empty thenask "Please enter your name EXACTLY as it appears on your registration form."if it is not empty thenput it into theNameput ChangeTheCase(theName) into theNameput getregistrationnumber (theName) into RegistrationNumberask "Please enter your registration number EXACTLY as it appears on your registration form."put it into RegistrationTryif RegistrationTry = RegistrationNumber then Register theName,RegistrationNumberelse DontRegisterend ifelsebeepanswer "This program is already registered to" && first line of me & ".  Do you want to" &&¬¨"UNREGISTER it?" with "Yes" or "No"if it is "Yes" thenUnregisterend ifend ifend ifend mouseUpfunction getregistrationnumber TheNameput the number of characters in line 3 of me into SpecificVariableput (the number of characters in theName) * 67 into LenghtNumberput last char of TheName into TheCharput offset (theChar,"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ") into OffsetNumberput first char of TheName into TheCharadd offset (theChar,"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ") to OffsetNumberput SpecificVariable * LenghtNumber * OffsetNumber into RegistrationNumberreturn RegistrationNumberend getregistrationnumberon DontRegisterbeepanswer "Sorry, the registration number is not correct for the name you entered."end DontRegisteron Unregisterif line 1 of me is empty then ShowAnnoyingMessageelseanswer "Are you sure you want to unregister this program?" with "Yes" or "Cancel"if it is Cancel then exit Unregisterset cursor to watchput empty into line 1 of meput empty into line 2 of melock screenshow meaddColor ColorCard,stamp,1beepanswer "The program is now not registered to anyone."end ifend Unregisteron Register theName,RegistrationNumberset cursor to watchput thename into line 1 of meput RegistrationNumber into line 2 of melock screenhide meaddColor ColorCard,stamp,1beep 2answer "Congratulations!  You are now registered.  THANK YOU!" & return¬¨& return & "If you want to unregister the program " &¬¨"choose 'About this progarm...' from the 'Apple' menu and press the 'Registration' button."¬¨&& "This will bring up your registraion info and the option to unregister."end Registeron ShowRegistraionInfoif line 1 of me is not empty thenAnswer "This program is registered to:" & return & line 1 of me & return & return &¬¨"Registration Number:"  && line 2 of me with "Unregister" or "OK"if it is Unregister thenUnregisterend ifelse ShowAnnoyingMessageend ShowRegistraionInfoOn ShowAnnoyingMessageif the first line of me is empty thenbeep 2answer "THIS PROGRAM IS NOT REGISTERED." & return & return &¬¨"If you find you like it, please register it." &&¬¨"Follow the directions on the registrion form to receive your registration" &&¬¨"number.  When you register, this annoying little reminder message will go away." ¬¨with "Not Yet" or "RegisterNow"if it = "Not Yet" then beep 4else send mouseup to meelseplay "Crystal2"put "Registered to:" && line 1 of mewait 1 secondput emptyhide message boxend ifend ShowAnnoyingMessageon mouseenterFullBalloons showDirect,"Click me to enter your name and registration number."end mouseenter</script>
  516.     </part>
  517.     <content>
  518.         <layer>background</layer>
  519.         <id>1</id>
  520.         <text>AppetizersBreadsCandy & CookiesDessertsEggs & CheeseFish & SeafoodMeatsNon-EdiblePoultrySalads & SoupsSaucesVegetables</text>
  521.     </content>
  522.     <content>
  523.         <layer>background</layer>
  524.         <id>4</id>
  525.         <text>Category Indexes</text>
  526.     </content>
  527.     <content>
  528.         <layer>background</layer>
  529.         <id>24</id>
  530.         <text>goodonoff</text>
  531.     </content>
  532.     <content>
  533.         <layer>background</layer>
  534.         <id>29</id>
  535.         <text>Amy's Recipes</text>
  536.     </content>
  537.     <name>Contents</name>
  538.     <script>on openbackgroundset scroll of bg field "Recipe Names" to 0ThisBgMenusend openbackgroundon ThisBgMenusif there is a menu "Mini Cookbook"thendisable menuitem 1 of menu "Mini Cookbook"disable menuitem 2 of menu "Mini Cookbook"end ifif there is a menuitem "Delete Recipe" of menu Editthen disable menuItem "Delete Recipe" of menu Editif there is a menuItem "Print Recipe" of menu "File"then disable menuItem "Print Recipe" of menu "File"end ThisBgMenuson opencardglobal Categoryput bg field "Index Name" into Categoryif the selectedLine of bg field "Table of Contents" ‚↠(number of this card - 1)then Select Line (number of this card - 1) of bg field "Table of Contents"send update to bg field "count"end opencardon ClearBlanks-- fix problem with extra lines showing up at top of recipe namesput 1 into xrepeatif line x of bg field "Recipe Names" = ""thenDelete line x of bg field "Recipe Names"elseput x+1 into xend ifif x-1 = the number of lines in bg field "recipe names"then exit repeatend repeatend ClearBlankson arrowKey directionif direction is "down" then NextCardelse if direction is "up" then prevcardelse pass arrowKeyend arrowkey</script>
  539. </background>
  540.